package cn.lyq.card.ui.pwd

import cn.lyq.card.base.SimpleVM
import cn.lyq.card.utils.EncryptUtils

class PwdForgetVM : SimpleVM() {

    fun forgetPwd(phone: String, pwd: String, code: String) = simpleEmit {
        val pwdEncrypt = EncryptUtils.encryptPwd(pwd)
        repository.userService.forgetPassword(phone, pwdEncrypt, code)
    }
}